from google.appengine.api import mail
from plzkeepthat.common.constants import MAIL_FOOTER

def send_mail(sender, recipient, subject, message):
    """ Sends a mail to the given parameters """
    email = mail.EmailMessage()
    email.to = recipient
    email.sender = sender
    email.subject = subject
    email.body = "".join([message, MAIL_FOOTER])
    
    email.send()